package com.ysh.spring.service.impl;

import com.ysh.spring.dao.UserDao;
import com.ysh.spring.service.UserService;

/**
 * 袁胜虎 on 2022/8/26 17:22
 */
public class UserServiceImpl implements UserService {
    private UserDao userDao;

    public  void setUserDao(UserDao userDao){
        this.userDao = userDao;
    }
    @Override
    public void addUser() {
        System.err.println("UserServiceImpl中的方法addUser执行了!!!");
        userDao.addUser();
    }
}
